<template>
  <div class="header-container">
    <div class="header-text">财务中心</div>
  </div>
</template>

<script>
import { mapState, mapMutations } from 'vuex';
export default {
  data() {
    return {
     
    };
  },
  computed: {
    ...mapState(["user"]),
    
  },
  methods: {
  }
};
</script>

<style scoped>
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 60px;
}

.header-text {
  color: #fff;
  text-align: left;
  line-height: 60px;
  font-size: 18px;
  font-weight: bold;
  margin-left: 20px;
}

.header-settings {
  cursor: pointer;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  transition: background-color 0.3s;
  margin-left: 1350px;
}

.header-settings:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 自定义弹框样式 */
.custom-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1); /* 调整透明度 */
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 400px;
  max-width: 90%;
  overflow: hidden;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #ebeef5;
  font-size: 16px;
  font-weight: 500;
  color: #303133;
}

.dialog-header i {
  cursor: pointer;
  font-size: 18px;
  color: #909399;
}

.dialog-content {
  padding: 20px;
}

.avatar-container {
  text-align: center;
  margin-bottom: 20px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
}

/* 隐藏文件选择框的默认提示文字 */
.avatar-input[type="file"]::-webkit-file-upload-button {
  display: none;
}

.avatar-input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.avatar-input {
  display: none;
}

.avatar-container:hover .avatar-input {
  display: block;
}
.avatar-container {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  cursor: pointer;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}
.user-info {
  margin-top: 20px;
}

.user-info p {
  margin: 10px 0;
  color: #333;
}

.dialog-footer {
  padding: 16px 20px;
  border-top: 1px solid #ebeef5;
  text-align: right;
}

.dialog-footer .el-button {
  margin-left: 10px;
}
</style>